#include "kernel.h"

int main(void)
{


unsigned int found = 0;

idt_install();
isrs_install();
irq_install();
keyboard_install();
math_init();
init_video();

timer_install();

__asm__ __volatile__ ("sti");
cls();

print((unsigned char *) "PCI:     Determining Existance of BIOS 32 Service Directory ...\n");
found = det_pres_bios32_service_directory();

if (found == 9)
	print((unsigned char *) "PCI:     Found BIOS 32 Service Directory\n");
else
	print((unsigned char *) "PCI: 	  BIOS 32 Service Directory not found\n");

found = det_pci_bios_in_SD();

if (found == 128)
	print( (unsigned char *) "PCI:     Service Corresponding to Service Identifier not present\n");
else if (found == 129)
	print((unsigned char *) "PCI:     Such Function is unimplemented\n");
else if (found == 0)
	print((unsigned char *) "PCI:     Found Service Corresponding to Service Identifier\n");

found = pci_bios_present();
found = scan_pci_buses();

// Below is the failing call
pcnet_entry_point = pci_scan_ioentry(pcnet_bus, pcnet_dev, (unsigned long) 0);

adjust_pci_device(pcnet_bus, pcnet_dev, 0);
print((unsigned char *) "General: Type cls<enter> to clear the screen\n");
print((unsigned char *) "/>");

cmditer = 0;

while(1);

}



